<template></template>
<!-- 加载地图文档 -->

<script setup>
import { docLayer } from "./Hooks/useGuangguMap"
const map = ref()
var source = ref()

onMounted(() => {
  //初始化地图
  map.value = useGlobalMap()
  //加载地图文档
  map.value.addLayer(docLayer)
  //创建画布
  source.value = new ol.source.Vector({})
  var layer = new ol.layer.Vector({
    source: source.value,
  })
  map.value.addLayer(layer)
})
</script>

<style scoped></style>
